package com.huishu.order.controller;

import com.huishu.commons.pojo.Result;
import com.huishu.order.pojo.dto.ConsoleDataDTO;
import com.huishu.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName：ConsoleController
 * @Author: ljj
 * @Date: 2023/4/24 10:32
 */
@RestController
@RequestMapping("/console")
public class ConsoleController {

    @Autowired
    private OrderService orderService;

    @PostMapping("/get")
    public Result consoleData(@RequestBody ConsoleDataDTO consoleDataDTO){
        return orderService.consoleData(consoleDataDTO);
    }
}
